#pragma once
#include "projectile.h"
#include "Emitter.h"

class Enemy;

class Missle : public Projectile
{
	Emitter* trail;
	Enemy* target;
	float rotation;
	bool hasTarget;
	float delayTimer;
	float delay;
	int delayID;
	float x;
	float y;
public:
	Missle(Enemy* tmp);

	virtual ~Missle();

	virtual void Update(float elapsed);

	virtual void Render();

	//virtual bool CheckCollision(IEntity* base);

	void SetDelayID(int id)		{delayID = id;}

	virtual void SetDirection(int d);

	virtual void SetRotation(int r);

};

